package com.qingke.demo1;

import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringTest2 {
	@Test
	public void demo(){
		ClassPathXmlApplicationContext app = new ClassPathXmlApplicationContext("applicationContext.xml");
		CustomerService cs = (CustomerService) app.getBean("customerService");
		cs.add();
		cs.find();
		app.close();
	}
}
